package com.xiangyu.ai.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.UserMessage;

/**
 * 记忆缓存
 * @author zxb
 * @version 1.0
 * @date 2025-03-03 10:35
 */
public interface AiAssistant {

    /**
     * 对话
     * @param msg
     * @return
     */
    String chat(String msg);

    /**
     * 记忆缓存
     * @param memoryId 记忆id
     * @param msg 消息
     * @return
     */
    String chat(@MemoryId Long memoryId, @UserMessage String msg);

}
